<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>添加地区</title>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/skin/admin/css/base.css">
<script type="text/javascript" language="javascript"
	src="__TMPL__skin/js/jquery.js"></script>
    <script>
      $(document).ready(function(e) {
           $("#province").change(function(){
			    var id = $(this).val();
					var url = "{:U('Index/getcity')}&id="+id;
				$.get(url,function(ret){
					    $("#cityid").html('');
					   for(var i=0;i<ret.length;i++){
						   $("#cityid").append('<option value="'+ret[i].id+'" >'+ret[i].city+'</option>');
						}
					  
					},"json");
			   
			   });
    });
    </script>
</head>
<body leftmargin="8" topmargin="8" background='__PUBLIC__/skin/images/allbg.gif'>

<!--  快速转换位置按钮  -->
<table width="98%" border="0" cellpadding="0" cellspacing="1" bgcolor="#D1DDAA" align="center">
<tr>
 <td height="26" background="__PUBLIC__/skin/images/newlinebg3.gif">
  <table width="98%" border="0" cellspacing="0" cellpadding="0">
  <tr>
  <td align="center"><strong>添加地区操作</strong></td>
 </tr>
</table>
</td>
</tr>
</table>
  
<!--  内容列表   -->
<form name="form2" action="" method="post">
  <table width="98%" border="0" align="center" cellspacing="1" bgcolor="#D1DDAA">
  <tr>
    <td width="100" height="28" bgcolor="#FFFFFF">&nbsp;地区名：</td>
    <td bgcolor="#FFFFFF"><input name="name" type="text" id="name" style="height:22px; width:200px;"></td>
  </tr>



  <tr>
    <td height="25" bgcolor="#FFFFFF">&nbsp;所属城市：</td>
    <td bgcolor="#FFFFFF">
     <select name="province" id="province">
    <volist name="province" id="v">
      <option value="{$v['id']}">{$v['province']}</option>
    </volist>
    </select>
    <select name="cityid" id="cityid">
   
    </select></td>
  </tr>
  

  <tr>
    <td height="25" bgcolor="#FFFFFF">&nbsp;</td>
    <td bgcolor="#FFFFFF"><input type="submit" name="submit" value="提交"></td>
  </tr>

</table>
</form>
</body>
</html>